//
//  HMIconsButton.m
//  G05爱鲜蜂
//
//  Created by 源 何 on 16/10/19.
//  Copyright © 2016年 何源. All rights reserved.
//

#import "HMIconsButton.h"
#import "HMHomeModel.h"

#define btnH self.bounds.size.height
#define btnW self.bounds.size.width
//#define 
@implementation HMIconsButton

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self.imageView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerX.equalTo(self);
            make.centerY.equalTo(self).multipliedBy(0.7);
            make.height.equalTo(@40);
            make.width.equalTo(@55);
        }];
    }
    return self;
}

- (CGRect)titleRectForContentRect:(CGRect)contentRect{
    return CGRectMake(0, btnH * 0.7, btnW, btnH * 0.3);
}

- (CGRect)imageRectForContentRect:(CGRect)contentRect{
    return [super imageRectForContentRect:contentRect];
}

@end
